from bs4 import BeautifulSoup								#导入库
soup = BeautifulSoup(open('index.html'),'lxml')					#创建对象
print(soup.name)										#输出soup的name
print(soup.head.name)									#输出head标签的name
